package com.demo.swingquickticket.swing.layoutUtil;

import java.awt.*;

public class WindowUtil {

    private static final Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();

    public static int getWindowWidth() {
        int width = (int) dim.getWidth();
        if (width <= 1920) {
            return 1920;
        }
        return width;
    }

    public static int getWindowHeight() {
        int height = (int) dim.getHeight();
        if (height <= 1080) {
            return 1080;
        }
        return height;
    }
}
